package com.mgs.tagger.appdata
{
	import com.mgs.tagger.appdata.dto.DirectoryDTO;
	import com.mgs.tagger.appdata.dto.FileItemDTO;
	import com.mgs.tagger.appdata.dto.MainDTO;
	import com.mgs.tagger.appdata.dto.TagDTO;
	import com.mgs.tagger.appdata.dto.WorkspaceDTO;

	public class DtoFactory
	{
		public static function createMain():MainDTO{
			var main:MainDTO = new MainDTO();
			main.workspaces = new Vector.<WorkspaceDTO>();
			return main;
		}
		
		public static function createWorkspace():WorkspaceDTO{
			var workspace:WorkspaceDTO = new WorkspaceDTO();
			workspace.directories = new Vector.<DirectoryDTO>();
			workspace.itemSize = ItemSizeConstant.MEDIUM;
			workspace.classification = createTag();
			workspace.classification.exclusive = false;
			workspace.classification.mandatory = true;
			workspace.classification.virtual = true;
			return workspace;
		}
		
		public static function createTag():TagDTO{
			var tag:TagDTO = new TagDTO();
			tag.children = new Vector.<TagDTO>();
			tag.files = new Vector.<FileItemDTO>();
			return tag;
		}
	}
}